package com.ruoyi.mall.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 order_info
 * 
 * @author ruoyi
 * @date 2023-02-18
 */
public class OrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** PK */
    private String id;

    /** 逻辑删除标记（0：显示；1：隐藏） */
    private String delFlag;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 订单单号 */
    @Excel(name = "订单单号")
    private String orderNo;

    /** 支付方式1、货到付款；2、在线支付 */
    @Excel(name = "支付方式1、货到付款；2、在线支付")
    private String paymentWay;

    /** 是否支付0、未支付 1、已支付 */
    @Excel(name = "是否支付0、未支付 1、已支付")
    private String isPay;

    /** 订单名 */
    @Excel(name = "订单名")
    private String name;

    /** 订单状态1、待发货 2、待收货 3、确认收货/已完成 5、已关闭 */
    @Excel(name = "订单状态1、待发货 2、待收货 3、确认收货/已完成 5、已关闭")
    private String status;

    /** 运费金额 */
    @Excel(name = "运费金额")
    private BigDecimal freightPrice;

    /** 销售金额 */
    @Excel(name = "销售金额")
    private BigDecimal salesPrice;

    /** 支付金额（销售金额+运费金额） */
    @Excel(name = "支付金额", readConverterExp = "销=售金额+运费金额")
    private BigDecimal paymentPrice;

    /** 付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 收货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiverTime;

    /** 成交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date closingTime;

    /** 买家留言 */
    @Excel(name = "买家留言")
    private String userMessage;

    /** 支付交易ID */
    @Excel(name = "支付交易ID")
    private String transactionId;

    /** 物流id */
    @Excel(name = "物流id")
    private String logisticsId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setPaymentWay(String paymentWay) 
    {
        this.paymentWay = paymentWay;
    }

    public String getPaymentWay() 
    {
        return paymentWay;
    }
    public void setIsPay(String isPay) 
    {
        this.isPay = isPay;
    }

    public String getIsPay() 
    {
        return isPay;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setFreightPrice(BigDecimal freightPrice) 
    {
        this.freightPrice = freightPrice;
    }

    public BigDecimal getFreightPrice() 
    {
        return freightPrice;
    }
    public void setSalesPrice(BigDecimal salesPrice) 
    {
        this.salesPrice = salesPrice;
    }

    public BigDecimal getSalesPrice() 
    {
        return salesPrice;
    }
    public void setPaymentPrice(BigDecimal paymentPrice) 
    {
        this.paymentPrice = paymentPrice;
    }

    public BigDecimal getPaymentPrice() 
    {
        return paymentPrice;
    }
    public void setPaymentTime(Date paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() 
    {
        return paymentTime;
    }
    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }
    public void setReceiverTime(Date receiverTime) 
    {
        this.receiverTime = receiverTime;
    }

    public Date getReceiverTime() 
    {
        return receiverTime;
    }
    public void setClosingTime(Date closingTime) 
    {
        this.closingTime = closingTime;
    }

    public Date getClosingTime() 
    {
        return closingTime;
    }
    public void setUserMessage(String userMessage) 
    {
        this.userMessage = userMessage;
    }

    public String getUserMessage() 
    {
        return userMessage;
    }
    public void setTransactionId(String transactionId) 
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId() 
    {
        return transactionId;
    }
    public void setLogisticsId(String logisticsId) 
    {
        this.logisticsId = logisticsId;
    }

    public String getLogisticsId() 
    {
        return logisticsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("orderNo", getOrderNo())
            .append("paymentWay", getPaymentWay())
            .append("isPay", getIsPay())
            .append("name", getName())
            .append("status", getStatus())
            .append("freightPrice", getFreightPrice())
            .append("salesPrice", getSalesPrice())
            .append("paymentPrice", getPaymentPrice())
            .append("paymentTime", getPaymentTime())
            .append("deliveryTime", getDeliveryTime())
            .append("receiverTime", getReceiverTime())
            .append("closingTime", getClosingTime())
            .append("userMessage", getUserMessage())
            .append("transactionId", getTransactionId())
            .append("logisticsId", getLogisticsId())
            .append("remark", getRemark())
            .toString();
    }
}
